<?php
$password = '123456';
if($_GET['pwd']!=$password) die('Access Denied');
$id = $_GET['id'];
$host = isset($_GET['host'])?$_GET['host']:MEMCACHED_HOST;
$port = isset($_GET['port'])?$_GET['port']:MEMCACHED_PORT;
$dealy = isset($_GET['dealy'])?$_GET['dealy']:0;

$memc = new Memcached($id);
$memc->addServer($host, $port) or die "Could not connect memcached server";
$memc->flush($dealy);

?>